/* Web网页样式 - 主容器 */
.app {
  min-height: 100vh;
  background: #f5f5f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* 网页头部 */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
  text-align: center;
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 聊天页面头部 */
.chatHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* 返回按钮 */
.backButton {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  backdrop-filter: blur(10px);
}

.backButton:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.backButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* 聊天标题 */
.chatTitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  flex: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* 输入提示 */
.inputTips {
  margin-top: 8px;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
}

/* 语音按钮 */
.voiceButton {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.voiceButton:hover:not(:disabled) {
  background-color: #e9ecef;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.voiceButton:disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.voiceButton.recording {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border-color: #ff6b6b;
  color: white;
  animation: pulseRecording 1.5s ease-in-out infinite alternate;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
  transform: scale(1.1);
}

.voiceButton.recording:hover {
  background: linear-gradient(135deg, #ee5a52 0%, #ff6b6b 100%);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 107, 107, 0.6);
}

.voiceIcon {
  font-size: 18px;
  transition: all 0.3s ease;
}

.recordingTime {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  animation: fadeInUp 0.3s ease;
}

@keyframes pulseRecording {
  0% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.8), 0 0 40px rgba(255, 107, 107, 0.4);
  }
}

/* 语音消息样式 - 类似微信语音消息 */
.voiceMessage {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #4CAF50;
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  position: relative;
  min-width: 80px;
  max-width: 200px;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.voiceMessage:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  background: #45a049;
}

.voiceMessage:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.voiceMessage::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #4CAF50;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.voiceMessageContent {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.voiceDuration {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  margin-right: 8px;
}

.voicePlayIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.voicePlayIcon:hover {
  transform: scale(1.1);
}

/* 播放图标样式 - 三个同心圆弧 + 播放三角形 */
.voicePlayIcon::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
}

.voicePlayIcon::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
}

.voicePlayTriangle {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid white;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

/* 播放状态动画 */
.voiceMessage.playing .voicePlayIcon::before {
  animation: rotate 2s linear infinite;
}

.voiceMessage.playing .voicePlayIcon::after {
  animation: rotate 2s linear infinite reverse;
}

@keyframes rotate {
  from {
    transform: rotate(-45deg);
  }
  to {
    transform: rotate(315deg);
  }
}

/* 接收的语音消息样式 */
.messageItem.received .voiceMessage {
  background: #f0f0f0;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.messageItem.received .voiceMessage:hover {
  background: #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.messageItem.received .voiceMessage::after {
  border-left-color: #f0f0f0;
}

.messageItem.received .voiceMessage:hover::after {
  border-left-color: #e8e8e8;
}

.messageItem.received .voiceDuration {
  color: #333;
}

.messageItem.received .voicePlayIcon::before,
.messageItem.received .voicePlayIcon::after {
  border-color: #666;
}

.messageItem.received .voicePlayTriangle {
  border-left-color: #666;
}

/* 表情包按钮 */
.emojiButton {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.3s ease-out;
}

/* 加号按钮 */
.plusButton {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  animation: fadeInUp 0.3s ease-out;
}

.plusButton:hover {
  background-color: #e9ecef;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.emojiButton:hover {
  background-color: #e9ecef;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 表情包选择器 */
.emojiPicker {
  padding: 10px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: 10px;
  min-width: 300px;
  animation: fadeInUp 0.3s ease-out;
}

.emojiGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.emojiItem {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 0;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}



.emojiItem:hover {
  background-color: #f0f0f0;
}

/* 加号菜单 */
.plusMenu {
  padding: 15px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: 10px;
  animation: fadeInUp 0.3s ease-out;
}

.plusMenuGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.plusMenuItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.plusMenuItem:hover {
  background-color: #f8f9fa;
}

.plusMenuIcon {
  font-size: 24px;
  display: block;
}

.plusMenuText {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* 发送按钮容器 */
.sendButtonContainer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  animation: fadeInUp 0.3s ease-out;
}

.header p {
  text-align: center;
  font-size: 1.2rem;
  margin: 10px 0 0 0;
  opacity: 0.9;
}

/* 角色选择器 */
.roleSelector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.roleButton {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.roleButton:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.roleButton.active {
  background: rgba(255, 255, 255, 0.9);
  color: #667eea;
  border-color: white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* 主要内容区域 */
.mainContent {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px;
  box-sizing: border-box;
}

/* 模式选择器 - Web网页样式 */
.modeSelector {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: 40px 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: stretch;
}

/* 单个卡片时的样式调整 */
.modeSelector .modeCard:only-child {
  max-width: 600px;
  width: 100%;
}

.modeCard {
  background: white;
  border-radius: 12px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  max-width: 500px;
}

.modeCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.modeIcon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.modeCard h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-weight: 600;
}

.modeCard p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 1rem;
}

.modeButton {
  display: inline-block;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 150px;
}

.modeButton:hover {
  background: linear-gradient(45deg, #764ba2, #667eea);
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 功能特色区域 */
.features {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  max-width: 1400px;
}

.features h3 {
  color: #333;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 600;
}

.features ul {
  list-style: none;
  padding: 0;
  color: #555;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.features li {
  padding: 10px 0;
  font-size: 1rem;
  line-height: 1.5;
  border-left: 3px solid #667eea;
  padding-left: 15px;
}

/* 音频提示区域 */
.audioTips {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  max-width: 1400px;
}

.audioTips h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
}

.audioTips p {
  margin: 10px 0;
  line-height: 1.6;
  color: #555;
}

.audioTips strong {
  color: #667eea;
  font-weight: 600;
}

/* 功能列表 */
.featureList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.feature {
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #667eea;
  border: 1px solid #e0e0e0;
}

/* 直播容器 - Web网页样式 */
.streamContainer {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

/* 页面标题 - Web网页样式 */
.pageTitle {
  text-align: center;
  color: #333;
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: 700;
}

/* 模式选择器 - Web网页样式 */
.modeSelector {
  max-width: 1000px;
  margin: 0 auto 40px;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

/* 房间配置 */
.roomConfig {
  margin-bottom: 25px;
}

.label {
  display: block;
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 模式按钮 */
.modeButtons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modeButton {
  flex: 1;
  max-width: 200px;
  padding: 12px 24px;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  color: #667eea;
}

.modeButton:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modeButton.active {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 头部信息 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.title {
  color: #333;
  font-size: 1.8rem;
  margin: 0;
  font-weight: 600;
}

/* 状态显示 */
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
}

.statusDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.statusDot.connected {
  background: #27ae60;
  animation: pulse-connected 2s infinite;
}

.statusDot.disconnected {
  background: #e74c3c;
  animation: pulse-disconnected 2s infinite;
}

.statusDot.error {
  background: #f39c12;
  animation: pulse-error 2s infinite;
}

@keyframes pulse-connected {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

@keyframes pulse-disconnected {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

@keyframes pulse-error {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
  }
}

/* 错误信息 */
.error {
  background: #fff5f5;
  color: #e53e3e;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  border: 1px solid #fed7d7;
  display: flex;
  align-items: center;
}

.error::before {
  content: '⚠️';
  margin-right: 10px;
  font-size: 1.2rem;
}

/* 媒体信息 */
.mediaInfo {
  background: #ebf8ff;
  color: #2b6cb0;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  border: 1px solid #bee3f8;
  display: flex;
  align-items: center;
}

.mediaInfo::before {
  content: '🎤';
  margin-right: 10px;
  font-size: 1.2rem;
}

/* 控制按钮 */
.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  padding: 12px 24px;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  color: #667eea;
  min-width: 120px;
}

.button:hover:not(:disabled) {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.button:disabled {
  background: #f7fafc;
  color: #a0aec0;
  border-color: #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

/* 视频预览区域 - 优化版 */
.preview {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.preview:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.video {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: contain;
  background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  position: relative;
  border: 2px dashed rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid #cbd5e0;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  opacity: 0.5;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ICE连接状态显示 */
.iceState {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #f7fafc;
  margin-left: 8px;
  border: 1px solid #e2e8f0;
}

/* 调试日志 */
.debugLog {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  max-height: 200px;
  overflow-y: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #4a5568;
  white-space: pre-wrap;
}

.debugLog .error {
  color: #e53e3e;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.debugLog .info {
  color: #3182ce;
}

.debugLog .success {
  color: #38a169;
}

/* 音频状态显示 */
.audioStatus {
  display: inline-block;
  margin-left: 10px;
  padding: 6px 12px;
  background-color: #f7fafc;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #4a5568;
  vertical-align: middle;
  border: 1px solid #e2e8f0;
}

/* 提示框样式 - Web网页样式 */
.tips {
  margin-top: 25px;
  padding: 20px;
  background: #f0fff4;
  border-left: 4px solid #38a169;
  border-radius: 8px;
  color: #2f855a;
  border: 1px solid #c6f6d5;
}

.tips p {
  margin: 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tips ol {
  margin: 10px 0;
  padding-left: 25px;
}

.tips li {
  margin: 6px 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* 音频控制按钮增强 */
.button.audioControl {
  background: #38a169;
  color: white;
  border-color: #38a169;
  margin-left: 10px;
  padding: 12px 20px;
}

.button.audioControl:hover:not(:disabled) {
  background: #2f855a;
  border-color: #2f855a;
}

/* 摄像头画中画样式 - 优化版 */
.pipContainer {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  cursor: grab;
  z-index: 10;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.pipContainer:hover {
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 6px 12px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(102, 126, 234, 0.8);
}

.pipContainer:active {
  cursor: grabbing;
  transform: scale(1.02);
  transition: transform 0.1s ease;
}

.pipContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.pipLabel {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* 响应式设计 - Web网页样式 */
@media (max-width: 1200px) {
  .mainContent {
    padding: 30px 20px;
  }
  
  .modeSelector {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
  }
  
  .modeCard {
    padding: 40px 30px;
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .mainContent {
    padding: 20px 15px;
  }
  
  .pageTitle {
    font-size: 1.8rem;
  }
  
  .modeSelector {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .modeButtons {
    flex-direction: column;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  .controls {
    justify-content: center;
  }
  
  .button {
    flex: 1;
    min-width: 120px;
  }
  
  .preview {
    min-height: 400px;
  }
  
  .video {
    min-height: 400px;
  }
  
  .placeholder {
    height: 400px;
    font-size: 1rem;
  }
  
  .modeCard {
    padding: 25px 20px;
    min-height: 300px;
  }
  
  .features ul {
    grid-template-columns: 1fr;
  }
  
  /* 聊天页面头部移动端适配 */
  .chatHeader {
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
  }
  
  .chatTitle {
    font-size: 1.3rem;
  }
  
  .backButton {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .streamContainer {
    padding: 20px;
  }
  
  .controls {
    flex-direction: column;
  }
  
  /* 聊天页面头部小屏幕适配 */
  .chatHeader {
    padding: 10px 12px;
    border-radius: 6px 6px 0 0;
  }
  
  .chatTitle {
    font-size: 1.2rem;
  }
  
  .backButton {
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
  }
  
  .button {
    width: 100%;
  }
  
  .modeCard {
    padding: 20px 15px;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .header p {
    font-size: 0.9rem;
  }
}

/* 聊天容器样式 */
.chatContainer {
  display: flex;
  flex-direction: column;
  height: 80vh;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* 用户名设置区域 */
.usernameSection {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: 1px solid #e0e0e0;
}

.usernameInput {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.usernameInput:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.usernameInput:disabled {
  background: rgba(255, 255, 255, 0.7);
  cursor: not-allowed;
}

.fixedUsername {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  font-size: 1rem;
  color: #333;
  box-sizing: border-box;
}

.usernameLabel {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 8px;
  font-weight: 500;
}

.usernameValue {
  color: #667eea;
  font-weight: 600;
}

/* 消息显示区域 */
.messagesContainer {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messagesContainer::-webkit-scrollbar {
  width: 6px;
}

.messagesContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.messagesContainer::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.messagesContainer::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 空状态 */
.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  text-align: center;
}

.emptyState p {
  margin: 8px 0;
  font-size: 1.1rem;
}

/* 消息项样式 */
.messageItem {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s ease;
}

.messageItem.sent {
  align-items: flex-end;
}

.messageItem.received {
  align-items: flex-start;
}

.messageItem.system {
  align-items: center;
}

/* 消息头部 */
.messageHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #666;
}

.messageItem.sent .messageHeader {
  flex-direction: row-reverse;
}

.sender {
  font-weight: 600;
  color: #667eea;
}

.timestamp {
  color: #999;
  font-size: 0.8rem;
}

/* 消息内容气泡 */
.messageContent {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.4;
  word-wrap: break-word;
  position: relative;
}

/* 发送的消息样式 */
.messageItem.sent .messageContent {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 接收的消息样式 */
.messageItem.received .messageContent {
  background: white;
  color: #333;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 系统消息样式 */
.messageItem.system .messageContent {
  background: #f0f0f0;
  color: #666;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  text-align: center;
}

/* 自己的消息特殊标识 */
.messageItem.ownMessage .messageContent {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

/* 输入区域 */
.inputSection {
  padding: 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.inputContainer {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.messageInput {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 22px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.messageInput:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.messageInput:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.sendButton {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  height: 44px;
}

.sendButton:hover:not(:disabled) {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sendButton:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sendButton:active:not(:disabled) {
  transform: translateY(0);
}

/* 输入提示 */
.inputTips {
  margin-top: 8px;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

/* 响应式设计 - 聊天组件移动端优化 */
@media (max-width: 768px) {
  .chatContainer {
    height: 90vh;
    margin: 10px;
    border-radius: 12px;
  }
  
  .messageContent {
    max-width: 85%;
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  
  .inputContainer {
    flex-direction: row;
    gap: 8px;
    padding: 15px;
  }
  
  .messageInput {
    border-radius: 20px;
    font-size: 16px; /* 防止iOS缩放 */
    min-height: 40px;
  }
  
  .sendButton {
    min-width: 60px;
    height: 40px;
    border-radius: 20px;
    padding: 0 16px;
  }

  /* 移动端表情包样式 */
  .emojiPicker {
    padding: 8px;
    min-width: auto;
    max-width: 90vw;
  }

  .emojiGrid {
    gap: 4px;
  }

  .emojiItem {
    font-size: 18px;
    padding: 8px;
    min-width: 36px;
    min-height: 36px;
  }

  /* 移动端加号菜单样式 */
  .plusMenu {
    padding: 10px;
    max-width: 90vw;
  }

  .plusMenuGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .plusMenuItem {
    padding: 12px 8px;
    min-height: 60px;
  }

  .plusMenuIcon {
    font-size: 20px;
  }

  .plusMenuText {
    font-size: 10px;
  }

  /* 移动端语音按钮优化 */
  .voiceButton {
    min-width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .voiceButton.recording {
    transform: scale(1.05);
  }

  /* 移动端语音消息优化 */
  .voiceMessage {
    max-width: 180px;
    padding: 8px 12px;
  }

  .voiceDuration {
    font-size: 0.9rem;
  }

  /* 移动端用户名区域 */
  .usernameSection {
    padding: 15px;
  }

  .usernameInput {
    font-size: 16px; /* 防止iOS缩放 */
    padding: 10px 14px;
  }

  /* 移动端消息区域 */
  .messagesContainer {
    padding: 15px;
  }

  .messageItem {
    margin-bottom: 12px;
  }

  .messageHeader {
    font-size: 0.8rem;
  }

  /* 移动端头部优化 */
  .header h1 {
    font-size: 2rem;
  }

  .roleSelector {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .roleButton {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* 小屏幕移动设备优化 */
@media (max-width: 480px) {
  .chatContainer {
    height: 95vh;
    margin: 5px;
    border-radius: 8px;
  }

  .messageContent {
    max-width: 90%;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .inputContainer {
    padding: 10px;
    gap: 6px;
  }

  .messageInput {
    font-size: 16px;
    min-height: 36px;
    padding: 8px 12px;
  }

  .sendButton {
    min-width: 50px;
    height: 36px;
    font-size: 0.9rem;
  }

  .voiceButton {
    min-width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .emojiPicker {
    max-width: 95vw;
    padding: 6px;
  }

  .emojiItem {
    font-size: 16px;
    padding: 6px;
    min-width: 32px;
    min-height: 32px;
  }

  .plusMenu {
    max-width: 95vw;
    padding: 8px;
  }

  .plusMenuGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .plusMenuItem {
    padding: 10px 6px;
    min-height: 55px;
  }

  .plusMenuIcon {
    font-size: 18px;
  }

  .plusMenuText {
    font-size: 9px;
  }

  .voiceMessage {
    max-width: 160px;
    padding: 6px 10px;
  }

  .voiceDuration {
    font-size: 0.8rem;
  }

  .usernameSection {
    padding: 10px;
  }

  .usernameInput {
    font-size: 16px;
    padding: 8px 12px;
  }

  .messagesContainer {
    padding: 10px;
  }

  .messageItem {
    margin-bottom: 10px;
  }

  .messageHeader {
    font-size: 0.75rem;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .roleSelector {
    gap: 8px;
    margin-top: 10px;
  }

  .roleButton {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .sendButton,
  .voiceButton,
  .emojiItem,
  .plusMenuItem,
  .roleButton {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .sendButton:active,
  .voiceButton:active,
  .roleButton:active {
    transform: scale(0.95);
  }

  .emojiItem:active,
  .plusMenuItem:active {
    transform: scale(0.9);
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .messageContent {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .emojiItem {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 弹幕相关样式 */
.danmakuControls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 20px;
}

.danmakuDisplay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
  /* 创建多个弹幕轨道 */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.danmakuItem {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  animation: danmakuMove 12s linear infinite;
  pointer-events: none;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  /* 修复弹幕位置 */
  left: 100%;
  z-index: 1001;
}

/* 虎牙风格的弹幕滚动动画 */
@keyframes danmakuMove {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100vw);
    opacity: 0;
  }
}

/* 弹幕轨道样式 */
.danmakuTrack {
  position: relative;
  height: 40px;
  width: 100%;
  overflow: hidden;
}

/* 不同速度的弹幕 */
.danmakuItem.speed-slow {
  animation-duration: 15s;
}

.danmakuItem.speed-normal {
  animation-duration: 12s;
}

.danmakuItem.speed-fast {
  animation-duration: 9s;
}

/* 弹幕大小变体 */
.danmakuItem.size-small {
  font-size: 12px;
  padding: 4px 8px;
}

.danmakuItem.size-large {
  font-size: 16px;
  padding: 8px 16px;
  font-weight: 600;
}

.danmakuInputContainer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
  pointer-events: auto;
}

.danmakuInput {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.danmakuInput::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.danmakuInput:focus {
  border-color: #4CAF50;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.danmakuSendButton {
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.danmakuSendButton:hover:not(:disabled) {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.danmakuSendButton:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 虎牙风格弹幕颜色变体 */
.danmakuItem:nth-child(8n) {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.9), rgba(255, 152, 0, 0.9));
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
}

.danmakuItem:nth-child(8n+1) {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.9), rgba(233, 30, 99, 0.9));
  box-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
}

.danmakuItem:nth-child(8n+2) {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(3, 169, 244, 0.9));
  box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
}

.danmakuItem:nth-child(8n+3) {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(139, 195, 74, 0.9));
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.danmakuItem:nth-child(8n+4) {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 235, 59, 0.9));
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
  color: #333;
}

.danmakuItem:nth-child(8n+5) {
  background: linear-gradient(135deg, rgba(121, 85, 72, 0.9), rgba(141, 110, 99, 0.9));
  box-shadow: 0 0 15px rgba(121, 85, 72, 0.5);
}

.danmakuItem:nth-child(8n+6) {
  background: linear-gradient(135deg, rgba(96, 125, 139, 0.9), rgba(120, 144, 156, 0.9));
  box-shadow: 0 0 15px rgba(96, 125, 139, 0.5);
}

.danmakuItem:nth-child(8n+7) {
  background: linear-gradient(135deg, rgba(63, 81, 181, 0.9), rgba(92, 107, 192, 0.9));
  box-shadow: 0 0 15px rgba(63, 81, 181, 0.5);
}

/* VIP弹幕特效 */
.danmakuItem.size-large {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 193, 7, 0.95)) !important;
  color: #333 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4) !important;
  border: 2px solid rgba(255, 215, 0, 0.8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: vipGlow 2s ease-in-out infinite alternate;
}

/* 自己发送的弹幕样式 */
.danmakuItem.ownMessage {
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.danmakuItem.ownMessage::before {
  content: '我: ';
  font-weight: bold;
  opacity: 0.8;
}

/* 观众发送的弹幕样式（主播端显示） */
.danmakuItem.viewerMessage {
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.danmakuItem.viewerMessage::before {
  content: '观众: ';
  font-weight: bold;
  opacity: 0.8;
}

@keyframes vipGlow {
  from {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
  }
}

/* 弹幕画中画动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式弹幕样式 */
@media (max-width: 768px) {
  .danmakuInputContainer {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  
  .danmakuInput {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .danmakuSendButton {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .danmakuItem {
    font-size: 12px;
    max-width: 150px;
  }
}